/*
File:		Particle.cpp
Author:		Skyler Suzuki
Purpose:	CParticle class handles the current particle information
*/

#include "Particle.h"


CParticle::CParticle(void)
{
	m_fCurrLife = 0.0f;
	m_fMaxLife = 0.0f;
	m_fCurrPositionX = 100.0f;
	m_fCurrPositionY = 100.0f;
	m_fCurrRotation = 0;
	m_vCurrVelocity.fX = 0.0f;
	m_vCurrVelocity.fY = 0.0f;
	m_pCCurrColor.pCA = 0;
	m_pCCurrColor.pCR = 0;
	m_pCCurrColor.pCG = 0;
	m_pCCurrColor.pCB = 0;
}


CParticle::~CParticle(void)
{
}

#pragma region Mutators
void CParticle::SetCurrLife(float fCurrLife)
{
	m_fCurrLife = fCurrLife;
}

void CParticle::SetMaxLife(float fMaxLife)
{
	m_fMaxLife = fMaxLife;
}

void CParticle::SetCurrPositionX(float nCurrPositionX)
{
	m_fCurrPositionX = nCurrPositionX;
}

void CParticle::SetCurrPositionY(float nCurrPositionY)
{
	m_fCurrPositionY = nCurrPositionY;
}

void CParticle::SetCurrRotation(float fCurrRotation)
{
	m_fCurrRotation = fCurrRotation;
}

void CParticle::SetCurrScale(float fCurrScale)
{
	m_fCurrScale = fCurrScale;
}

void CParticle::SetCurrVelocity(float currX, float currY)
{
	m_vCurrVelocity.fX = currX;
	m_vCurrVelocity.fY = currY;
}

void CParticle::SetParticleColor(int cA, int cR, int cG, int cB)
{
	m_pCCurrColor.pCA = cA;
	m_pCCurrColor.pCR = cR;
	m_pCCurrColor.pCG = cG;
	m_pCCurrColor.pCB = cB;
}
#pragma endregion

#pragma region Accessors
float CParticle::GetCurrLife(void) const
{
	return m_fCurrLife;
}

float CParticle::GetMaxLife(void) const
{
	return m_fMaxLife;
}

float CParticle::GetCurrPositionX(void) const
{
	return m_fCurrPositionX;
}

float CParticle::GetCurrPositionY(void) const
{
	return m_fCurrPositionY;
}

float CParticle::GetCurrRotation(void) const
{
	return m_fCurrRotation;
}

float CParticle::GetCurrScale(void) const
{
	return m_fCurrScale;
}

tVector2D CParticle::GetCurrVelocity(void) const
{
	return m_vCurrVelocity;
}

particleColor CParticle::GetCurrParticlColor(void) const
{
	return m_pCCurrColor;
}
#pragma endregion